<script setup lang="ts">

import EnterpriseBasicInfo from "@/components/enterpriseManage/enterpriseBasicInfo.vue";
import EnterpriseJob from "@/components/enterpriseManage/enterpriseJob.vue";
import EnterprisePosts from "@/components/enterpriseManage/enterprisePosts.vue";
import EnterprisePush from "@/components/enterpriseManage/enterprisePush.vue";
import {ref} from "vue";
const enterpriseName = ref();
const receiveEnterpriseName = (eName: string) => {
  enterpriseName.value = eName;
}
</script>

<template>
  <span class="main-wrapper">
    <span class="left-line">
      <enterprise-basic-info @sendName="receiveEnterpriseName"></enterprise-basic-info>
      <enterprise-posts style="margin-top: 30px;"></enterprise-posts>
    </span>
    <span class="right-line">
      <enterprise-job :e-name="enterpriseName"></enterprise-job>
      <enterprise-push style="margin-top: 30px"></enterprise-push>
    </span>
  </span>

</template>

<style scoped>
.main-wrapper {
  display: flex;
  flex-direction: row;
  /*height: calc(100% - var(--guide-height));*/
  overflow-y: auto;
  height: 100%;
  width: 100%;
  padding: 30px 100px;
  background-color: var(--color-light);
  .left-line {
    width: 70%;
    min-width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .right-line {
    margin-left: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 30%;
  }
}
</style>